package com.rescue.forum.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
 * 文章板块信息
 * @TableName forum_board
 */
public class ForumBoard implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 板块ID
     */
    @NotNull(message = "[板块ID]不能为空")
    @ApiModelProperty("板块ID")
    private Integer boardId;
    /**
     * 父级板块ID
     */
    @ApiModelProperty("父级板块ID")
    private Integer pBoardId;
    /**
     * 板块名
     */
    @Size(max = 50, message = "编码长度不能超过50")
    @ApiModelProperty("板块名")
    private String boardName;
    /**
     * 封面
     */
    @Size(max = 50, message = "编码长度不能超过50")
    @ApiModelProperty("封面")
    private String cover;
    /**
     * 描述
     */
    @Size(max = 150, message = "编码长度不能超过150")
    @ApiModelProperty("描述")
    private String boardDesc;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sort;
    /**
     * 0:只允许管理员发帖 1:任何人可以发帖
     */
    @ApiModelProperty("0:只允许管理员发帖 1:任何人可以发帖")
    private Integer postType;

}
